<template>
  <basic-container>
    <avue-form v-loading="loading" ref="form" :option="option" v-model="form"> </avue-form>
  </basic-container>
</template>

<script>
import { option } from '@/option/tenant/supplier/tempporary-extend'
export default {
  name: 'TemporaryExtend',
  props: ['type'],
  data() {
    return {
      form: {},
      loading: false,
      option: option.call(this)
    }
  },
  methods: {
    handleSave() {
      this.$refs.form.validate((vaild, done) => {
        if (vaild) {
          this.$emit('update:visible', false)
          done()
        }
      })
    },
    handleSubmit() {
      this.$refs.form.validate((vaild, done) => {
        if (vaild) {
          this.$emit('update:visible', false)
          done()
        }
      })
    },
    handleCancel() {
      this.$refs.form.resetForm()
      this.$emit('update:visible', false)
    }
  }
}
</script>

<style></style>
